<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>用户模块-客户管理-单品客户</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/css/skin.css"/>
</head>
<body>
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-sm-12">
            <div class="card">
                <div class="card-header">
                    <h1>单品客户</h1>
                </div>
                <div class="card-body" autocomplete="off">
                    <div class="row content-action">
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <!-- 全部 本周 本月 本年 -->
                            <div class="time-search pull-left">
                                <input type="hidden" id="dateType" name="dateType"/>
                                <div class="all active-second" onclick="selectTime('all')">全部</div>
                                <div class="week" onclick="selectTime('week')">本周</div>
                                <div class="month" onclick="selectTime('month')">本月</div>
                                <div class="year" onclick="selectTime('year')">本年</div>
                            </div>
                            <button type="button" class="btn btn-label btn-success" onclick="addSingleProductCustomerModel()">
                                <label><i class="mdi mdi-plus-circle-outline"></i></label>新增单品客户
                            </button>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <div class="pull-right">
                                <div class="min-search pull-left">
                                    <input class="form-control" type="text" placeholder="请输入客户名称" id="customerNameMin" name="customerNameMin">
                                    <button class="btn btn-primary" type="button" onclick="searchSingleProductCustomerList(1)"><i class="mdi mdi-magnify"></i><span>搜索</span></button>
                                </div>
                                <button class="btn btn-default btn-senior" data-toggle="collapse" data-target="#filterContent" aria-expanded="false" aria-controls="filterContent"><i class="mdi mdi-sort-variant"></i>高级筛选</button>
                            </div>
                        </div>
                    </div>
                    <div class="collapse filter-content" id="filterContent">
                        <div class="row">
                            <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                                <label for="customerName">客户名称</label>
                                <div>
                                    <input class="form-control" type="text" placeholder="请输入客户名称" id="customerName" name="customerPoolName">
                                </div>
                            </div>
                            <div class="form-group col-lg-4 col-md-4 col-sm-4 col-xs-6">
                                <label class="control-label" for="createTmStart">创建起止日期</label>
                                <div class="form-content input-group">
                                    <input type="text" id="createTmStart" class="form-control date-input"
                                           placeholder="请输入起始时间" autocomplete="off">
                                    <span class="input-group-addon">至</span>
                                    <input type="text" id="createTmEnd" class="form-control date-input"
                                           placeholder="请输入截止时间" autocomplete="off">
                                </div>
                            </div>
                            <div class="form-group col-lg-5 col-md-3 col-sm-6 col-xs-12">
                                <label>&nbsp;</label>
                                <div class="text-right">
                                    <button class="btn btn-primary" type="button" onclick="searchSingleProductCustomerList(2)">
                                        <i class="mdi mdi-magnify"></i><span>搜索</span></button>
                                    <button class="btn btn-default" onclick="clearAllData()">重置</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 单品客户表单表格 -->
                    <table id="singleProductCustomerTableList"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" id="addSingleProductCustomerModel"
     data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header" style="border: none;">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4 class="modal-title">新增单品客户</h4>
            </div>
            <div class="modal-body p-t-0">
                <form class="well form-well m-b-0" autocomplete="off" style="min-height: 200px;">
                    <div class="row">
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12"></div>
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                            <!--<label class="control-label label-required" for="customerNameSearch">客户名称</label>-->
                            <div class="form-content">
                                <input type="text" id="customerNameSearch" class="form-control" placeholder="请输入客户名称">
                                <button class="btn btn-primary" type="button" onclick="customerTableListInit()" style="position: absolute;top: 0;right: 0;">
                                    <i class="mdi mdi-magnify"></i><span>查询</span>
                                </button>
                            </div>
                        </div>
                    </div>
                    <table id="customerTableList"></table>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script src="/js/crm/common/common.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/customerManager/user/userSingleProductCustomerForm.js"></script>
</html>